﻿namespace Example
{
    using Castle.Windsor;
    using Castle.Windsor.Configuration.Interpreters;

    using CommonServiceLocator.WindsorAdapter;

    using Microsoft.Practices.ServiceLocation;

    public static class IoC
    {
        public static void Configure()
        {
            var container = new WindsorContainer(new XmlInterpreter());
            ServiceLocator.SetLocatorProvider(() => new WindsorServiceLocator(container));
        }
    }
}